// package com.mapresso;/** * *************************************************************************************** * FPoint *  * @author Adrian Herzog * @version 1.0 */public class FPoint {// public class FPoint implements Cloneable {	float x;	float y;	FPoint(float x, float y) {		this.x = x;		this.y = y;	}	FPoint(double xd, double yd) {		this.x = (float) xd;		this.y = (float) yd;	}	public double distance2(FPoint f) {		final double dx = f.x - x;		final double dy = f.y - y;		return dx * dx + dy * dy;	}	/*	 * public Object clone() { return new FPoint(x, y); }	 */	public String toString() {		return "FPoint[x=" + x + ",y=" + y + "]";	}}